#include "common.h"

#include <sys/stat.h>
#include <fcntl.h>

int main(int argc, char *argv[])
{
	if(argc != 2)
		err_sys("Input Error!\n");
	
	int fd = open(argv[1], O_RDONLY);
	if(fd < 0)
	{
		err_sys("Open file error !\n");
	}

	printf("Size of file : %ld\n", lseek(fd, 0, SEEK_END));
}

